/*
 * SDManager.h
 *
 *  Created on: 12/04/2013
 *      Author: roger
 */

#ifndef SDMANAGER_H_
#define SDMANAGER_H_
#include <SD.h>
#include <Time.h>
#include <stdio.h>

class SDManager {
private:
	char dstring[20];
	int low;
	int high;
	bool configLoaded;
	uint8_t select;
	int m_timeZone;

public:
	SDManager();
	virtual ~SDManager();
	void logEntry(int bpm);
	void logEntry(char *message);
	char *dateString();
	void loadConfiguration();
	void init();
	int getLow();
	int getHigh();
	int readInt(File dataFile);
	void setup(uint8_t SDSelect);
	char *timeString(long elapsed);
};

#endif /* SDMANAGER_H_ */
